<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>欢迎来到聊天室</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script type="application/javascript" src="/js/jquery-3.5.1.min.js"></script>
    <script type="application/javascript" src="/layui/layui.js"></script>
    <script type="application/javascript" src="/js/plugin.js"></script>
</head>

<body class="layui-layout-body">

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="layui-row layui-col-space15">
            <button id="userRegister" class="layui-btn layui-btn-primary">我要注册</button>
            <button id="userLogin" class="layui-btn layui-btn-primary">我要登录</button>
            <button id="adminLogin" class="layui-btn layui-btn-primary">管理员登录</button>
        </div>
    </div>
    <script>
        $("#userRegister").click(function () {
            iframe("#mainContext","register.html",parent);
        });
        $("#userLogin").click(function () {
            iframe("#mainContext","login.html",parent);
        });
        $("#adminLogin").click(function () {
            iframe("#mainContext","adminlogin.html",parent);
        });
    </script>
</body>

</html>